package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.ProductProcessingMethodsMapper;
import com.hcb.micro.dto.ProductProcessingMethods;
import com.hcb.micro.service.IProductProcessingMethodsService;

@Service("ProductProcessingMethodsService")
public class ProductProcessingMethodsServiceImpl implements IProductProcessingMethodsService {

	@Autowired
	ProductProcessingMethodsMapper ProductProcessingMethodsMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return ProductProcessingMethodsMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ProductProcessingMethods record) {
		return ProductProcessingMethodsMapper.insert(record);
	}

	@Override
	public int insertSelective(ProductProcessingMethods record) {
		return ProductProcessingMethodsMapper.insertSelective(record);
	}

	@Override
	public ProductProcessingMethods selectByPrimaryKey(Integer id) {
		return ProductProcessingMethodsMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductProcessingMethods record) {
		return ProductProcessingMethodsMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ProductProcessingMethods record) {
		return ProductProcessingMethodsMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<ProductProcessingMethods> selectByPara(Map<String, Object> para) {
		return ProductProcessingMethodsMapper.selectByPara(para);
	}

}
